<?php
$file="Documents/".$_GET['file'];
if(file_exists($file))
{
$fr = fopen($file, 'r');
$filedata = fread($fr, filesize($file));
fclose($fr);
header ( 'Content-Length: ' . filesize ( $file ) );
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=\"".$_GET['file']."\"");
readfile($file);
}
?>